home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttjjjjuuuussssaaaaggggeeee((((2222)))) ggggeeeettttjjjjuuuussssaaaaggggeeee((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- getjusage - get job usage information
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh>>>>
-
- iiiinnnntttt ggggeeeettttjjjjuuuussssaaaaggggeeee((((jjjjiiiidddd____tttt jjjjiiiidddd,,,, iiiinnnntttt rrrreeeessssoooouuuurrrrcccceeee,,,, ssssttttrrrruuuucccctttt jjjjoooobbbbrrrruuuussssaaaaggggeeee ****uuuupppp))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _g_e_t_j_u_s_a_g_e function retrieves the resource usage values for the
- specified job ID. If the _j_i_d parameter is zero, usage values for the
- current job will be returned. If _j_i_d is non-zero, it represents the job
- ID of the job for which usages values are retrieved. The _r_e_s_o_u_r_c_e
- parameter specifies the resource for which the usage values are returned.
- Allowable values are taken from the JLIMIT_xxx macros found in the
- ssssyyyyssss////rrrreeeessssoooouuuurrrrcccceeee....hhhh file. For example, the JLIMIT_CPU macro is for cpu time.
- The _u_p parameter points to a _j_o_b_r_u_s_a_g_e structure in the user program
- where the usage values will be returned.
-
- If the job ID of the caller is different from job specified by _j_i_d, the
- real or effective user ID of the caller must match the user ID of the
- user associated with the job. User association is established by the
- _u_s_e_r parmater for _mmmm_aaaa_kkkk_eeee_nnnn_eeee_wwww_jjjj_oooo_bbbb. Otherwise, the _g_e_t_j_u_s_a_g_e function checks
- for the CAP_MAC_READ capability. See the capability(4) and
- capabilities(4) man pages for more information on the capability
- mechanism that provides fine grained control over the privileges of a
- process.
-
- EEEERRRRRRRROOOORRRRSSSS
- Under the following conditions, the _gggg_eeee_tttt_jjjj_uuuu_ssss_aaaa_gggg_eeee function fails and sets
- _e_r_r_n_o to:
-
- [ENOPKG] The job limits software is not installed.
-
- [ENOJOB] A job with the specified job ID cannot be found.
-
- [EINVAL] The limit denoted by _r_e_s_o_u_r_c_e is invalid.
-
- [EPERM] The caller does not have permission to access the usage
- information.
-
- [EFAULT] The the address of _u_p is invalid.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- getjlimit(2), getrusage(3).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _g_e_t_j_u_s_a_g_e returns a value of 0. Otherwise, a
- value of -1 is returned and eeeerrrrrrrrnnnnoooo is set to indicate the error.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-